<?php
$url = $this->page_url;
$parameterGet = $this->DbshopCommonFun()->dbshopRequesthelper();
if ($parameterGet != ""){
  $array = explode('&', $parameterGet);
  $array = array_unique($array);
  $parameterGet = "?".implode('&', $array);
}
?>
<?php if ($this->pageCount): ?>
<div class="pagination pull-right" style=" margin:0;">
<ul>
      <?php if (isset($this->previous)): ?>
     <li><a href="javascript:;" onclick="dbshop_ajax_list('<?php echo $url.'/1'.$parameterGet; ?>', '<?php echo $this->show_div_id; ?>');">&lt;&lt; <?php echo $this->translate('首页'); ?>&nbsp;&nbsp;</a></li>
     <li><a href="javascript:;" onclick="dbshop_ajax_list('<?php echo $url.'/'.$this->previous.$parameterGet; ?>', '<?php echo $this->show_div_id; ?>');">←</a></li>      
      <?php else: ?>
      <li class="disabled"><a href="#">&lt;&lt; <?php echo $this->translate('首页'); ?>&nbsp;&nbsp;</a></li>
      <li class="disabled"><a href="#">←</a></li>      
      <?php endif; ?>
      <?php foreach ($this->pagesInRange as $page): ?>
      <?php if ($page != $this->current): ?>
        <li><a class="nopage" href="javascript:;" onclick="dbshop_ajax_list('<?php echo $url.'/'.$page.$parameterGet; ?>', '<?php echo $this->show_div_id; ?>');">
      <?php echo $page; ?>
      </a></li>
      <?php else: ?>
       <li class="active"><a href="#">
      <?php echo $page; ?>
       </a>
       </li>
      <?php endif; ?>
      <?php endforeach; ?>
      <?php if (isset($this->next)): ?>
      <li><a href="javascript:;" onclick="dbshop_ajax_list('<?php echo $url.'/'.$this->next.$parameterGet; ?>', '<?php echo $this->show_div_id; ?>');">→</a></li>
      <li><a href="javascript:;" onclick="dbshop_ajax_list('<?php echo $url.'/'.$this->pageCount.$parameterGet; ?>', '<?php echo $this->show_div_id; ?>');">&nbsp;<?php echo $this->translate('末页'); ?> &gt;&gt;</a></li>
      <?php else: ?>      	
	   <li class="disabled"><a href="#">→</a></li>
	   <li class="disabled"><a href="#">&nbsp;<?php echo $this->translate('末页'); ?> &gt;&gt;&nbsp;</a></li>
      <?php endif; ?>
</ul>
</div>
<?php endif; ?>
